package com.project.seckill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.seckill.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProductMapper extends BaseMapper<Product> {

    void updateStockByProductId(@Param("id") Long id, @Param("num") int num);
}
